package com.ruoyi.bl.domain;

import java.time.LocalDateTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 历史对话对象 historychat
 * 
 * @author zhanghao
 * @date 2025-03-04
 */
public class Historychat extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一标识 */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 对话id */
    @Excel(name = "对话id")
    private String chatId;

    /** 提问的问题 */
    @Excel(name = "提问的问题")
    private String ask;

    /** 回复的内容 */
    @Excel(name = "回复的内容")
    private String request;

    /** 提问时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "提问时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setChatId(String chatId) 
    {
        this.chatId = chatId;
    }

    public String getChatId() 
    {
        return chatId;
    }
    public void setAsk(String ask) 
    {
        this.ask = ask;
    }

    public String getAsk() 
    {
        return ask;
    }
    public void setRequest(String request) 
    {
        this.request = request;
    }

    public String getRequest() 
    {
        return request;
    }
    public void setTime(LocalDateTime time)
    {
        this.time = time;
    }

    public LocalDateTime getTime()
    {
        return time;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("chatId", getChatId())
            .append("ask", getAsk())
            .append("request", getRequest())
            .append("time", getTime())
            .toString();
    }
}
